<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./jquery.min.js"></script>
    <script src="./kline.min.js"></script>
</head>

<body>
    <!-- K线图 -->
    <div id="kline_container"></div>
    <script>
        var locationurl = location.search;
        var kline = new Kline({
            element: "#kline_container",
            ranges: ["1w", "1d", "1h", "30m", "15m", "5m", "1m", "line"],
            symbol: "BTC",
            symbolName: "比特币",
            type: "poll", // poll/stomp
            url: "/index/apihq/getticker" + locationurl,
            subscribePath: "/kline/subscribe",
            sendPath: "/kline/send"
        });
        kline.draw();
    </script>
</body>

</html>